package com.tron.sync.syncwfinfoindex;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "IBPS-PLATFORM-PROVIDER")
public interface  PlatformClient {

    @GetMapping("/org/findOrgByParentId")
    String findOrgByParentId(@RequestParam("parentId") String parentId, @RequestHeader("X-Authorization-access_token")String token);

    @PostMapping("/employee/queryOrgUserRelation")
    String  queryOrgUserRelation(@RequestBody JSONObject jsonObject, @RequestHeader("X-Authorization-access_token")String token);

    @GetMapping("/employee/getUserOrgInfo")
    String getUserInfo(@RequestParam("userId") String userId, @RequestHeader("X-Authorization-access_token")String token);

}
